<template>
  <BaseAudit :isNeedDetails="true">
    <template slot="extraOption2">
      <div class="about-master-container">
        <title-name title="党组织基础信息"></title-name>
        <div class="mb20">
          <a-row>
            <a-col :span="8">
              <a-form-model-item label="组织名称">
                <a-input v-model="detail.partyOrgName" disabled />
              </a-form-model-item>
            </a-col>
            <a-col :span="8">
              <a-form-model-item label="上级组织">
                <a-input v-model="detail.parentName" disabled />
              </a-form-model-item>
            </a-col>
            <a-col :span="8">
              <a-form-model-item label="组织类型">
                <a-input v-model="detail.orgTypeName" disabled />
              </a-form-model-item>
            </a-col>
            <a-col :span="8">
              <a-form-model-item label="组织成立时间">
                <a-input v-model="detail.orgRegtime" disabled />
              </a-form-model-item>
            </a-col>
            <a-col :span="8">
              <a-form-model-item label="创建人" prop="creator">
                <a-input placeholder="" v-model="detail.creator" disabled />
              </a-form-model-item>
            </a-col>
            <a-col :span="8">
              <a-form-model-item label="创建时间" prop="createTime">
                <a-input placeholder="" v-model="detail.createTime" disabled />
              </a-form-model-item>
            </a-col>
          </a-row>
        </div>
      </div>
    </template>
  </BaseAudit>
</template>

<script>
import BaseAudit from '@/views/matters/approval/components/BaseAudit'
import { getPartyOrgAllById } from '@/api/partyMasses'

export default {
  name: 'RiskAudit',
  components: {
    BaseAudit
  },
  data() {
    return {
      detail: {
        id: ''
      },
      taskDefKey: this.$route.query.taskDefKey,
      businessType: this.$route.query.businessType,
      businessId: this.$route.query.businessId
    }
  },
  created() {
  },
  mounted() {
    this.getBaseInfo()
  },
  methods: {
    async getBaseInfo(request) {
      this.loading = true
      const param = { id: this.businessId }
      let res = await getPartyOrgAllById(param)
      this.loading = false
      if (res.data && res.data.length) {
        this.detail = res.data[0]
      } else {
        this.$noticeError('获取详情失败')
      }
    }
  }
}
</script>


<style lang="less" scoped>
.materialsAudit-container {
  /deep/ .approval-item {
    display: flex;
  }
}
</style>
